﻿//
//  CASDK2ErrorDefine.h
//
//  Copyright (c) 2016 KONICA MINOLTA, INC.
//
//
#pragma once

#define CA_OK                           0
#define CA_ERROR                        1

#define IDS_ERR_COMPORT                 200
#define IDS_ERR_COMPORT_INVALIDTIMEOUT  201
#define IDS_ERR_COMPORT_USBOPEN         202
#define IDS_ERR_COMPORT_USBFIFOSENDOPEN 203
#define IDS_ERR_COMPORT_USBFIFORECEIVEOPEN 204
#define IDS_ERR_COMPORT_USBDMASENDOPEN  205
#define IDS_ERR_COMPORT_USBDMARECEIVEOPEN 206
#define IDS_ERR_COMPORT_RSOPEN          207
#define IDS_ERR_COMPORT_SETST           208
#define IDS_ERR_COMPORT_GETST           209
#define IDS_ERR_COMPORT_USBWRITE        210
#define IDS_ERR_COMPORT_RSWRITE         211
#define IDS_ERR_COMPORT_RSALREADYCLOSED 212
#define IDS_ERR_COMPORT_USBREAD         213
#define IDS_ERR_COMPORT_RSREAD          214
#define IDS_ERR_COMPORT_RSTIMEOUT       215
#define IDS_ERR_COMPORT_RSCANCELLED     216
#define IDS_ERR_COMPORT_OPEN            299

#define IDS_ERR_ETHPORT                 300
#define IDS_ERR_ETHPORT_CONNECT_FAIL    301
#define IDS_ERR_ETHPORT_DISCONNECT_FAIL 302
#define IDS_ERR_ETHPORT_GETADDR_FAIL    303
#define IDS_ERR_ETHPORT_CLOSED          304
#define IDS_ERR_ETHPORT_WRITE           305
#define IDS_ERR_ETHPORT_READ            306
#define IDS_ERR_ETHPORT_TIMEOUT         307
#define IDS_ERR_ETHPORT_CANCELLED       308

#define IDS_ERR_SDK                     400
#define IDS_ERR_SDK_INVALIDCOMMAND      401
#define IDS_ERR_SDK_INVALIDARGUMENT     402
#define IDS_ERR_SDK_ALREADYEXIST        403
#define IDS_ERR_SDK_FATALERROR          404
#define IDS_ERR_SDK_CREATEMUTEXERROR    405
#define IDS_ERR_SDK_OPENFILE            406
#define IDS_ERR_SDK_INVALIDCANUMBER     407
#define IDS_ERR_SDK_INVALIDPORTID       408
#define IDS_ERR_SDK_INVALIDBAUDRATE     409
#define IDS_ERR_SDK_NULLPOINTER         410
#define IDS_ERR_SDK_P1NOTCONNECTED      411
#define IDS_ERR_SDK_PROBENOTCONNECTED   412
#define IDS_ERR_SDK_INVALIDXY           413
#define IDS_ERR_SDK_INVALIDLV           414
#define IDS_ERR_SDK_INVALIDCLR          415
#define IDS_ERR_SDK_INVALIDINDEX        416
#define IDS_ERR_SDK_INVALIDCAID         417
#define IDS_ERR_SDK_INVALIDCHANNELNO    418
#define IDS_ERR_SDK_INVALIDCHANNELID    419
#define IDS_ERR_SDK_IDTOOLONG           420
#define IDS_ERR_SDK_INVALIDPROBENUMBER  421
#define IDS_ERR_SDK_INVALIDPROBEID      422
#define IDS_ERR_SDK_TOOSMALL            423
#define IDS_ERR_SDK_TOOLARGE            424
#define IDS_ERR_SDK_NOTEXIST            425
#define IDS_ERR_SDK_MESUREERROR         426
#define IDS_ERR_SDK_ALREADYUSED         427
#define IDS_ERR_SDK_CH0CAL              428
#define IDS_ERR_SDK_NOTOUTPUTPROBES     429
#define IDS_ERR_SDK_INSUFFICIENTBUFFER  430
#define IDS_ERR_SDK_INVALIDCHANNELCOMMENT 431
#define IDS_ERR_SDK_INVALIDFREQCOUNTCOMBI 432
#define IDS_ERR_SDK_BODYTYPEONLY        433
#define IDS_ERR_SDK_INVALIDCONFIGTYPE   434
#define IDS_ERR_SDK_USERCANCELLED       435
#define IDS_ERR_SDK_MEASUREMENT_ONGOING 436
#define IDS_ERR_SDK_DEVICE_NOT_FOUND    437
#define IDS_ERR_SDK_DATA_NOT_FOUND      438
#define IDS_ERR_SDK_INVALID_DEVICE      439
#define IDS_ERR_SDK_PROBETYPEONLY       440
#define IDS_ERR_SDK_INCORRECTHWSETUP    441
#define IDS_ERR_SDK_INVALIDDSPMODEARGUMENT 442
#define IDS_ERR_SDK_USERDATANOTSET      443
#define IDS_ERR_SDK_INCORRECTDEVICEFW   444
#define IDS_ERR_SDK_FREQOUTOFRANGE      445

#define IDS_ERR_CA                      500
#define IDS_ERR_CA_1                    501
#define IDS_ERR_CA_2                    502
#define IDS_ERR_CA_3                    503
#define IDS_ERR_CA_4                    504
#define IDS_ERR_CA_5                    505
#define IDS_ERR_CA_6                    506
#define IDS_ERR_CA_7                    507
#define IDS_ERR_CA_8                    508
#define IDS_ERR_CA_9                    510
#define IDS_ERR_CA_10                   509
#define IDS_ERR_CA_11                   511
#define IDS_ERR_CA_12                   512
#define IDS_ERR_CA_13                   513
#define IDS_ERR_CA_14                   514
#define IDS_ERR_CA_15                   515
#define IDS_ERR_CA_16                   516
#define IDS_ERR_CA_17                   517
#define IDS_ERR_CA_18                   518
#define IDS_ERR_CA_19                   519
#define IDS_ERR_CA_20                   520
#define IDS_ERR_CA_21                   521
#define IDS_ERR_CA_22                   522
#define IDS_ERR_CA_23                   523
#define IDS_ERR_CA_24                   524
#define IDS_ERR_CA_25                   525
#define IDS_ERR_CA_26                   526
#define IDS_ERR_CA_27                   527
#define IDS_ERR_CA_28                   528
#define IDS_ERR_CA_29                   529
#define IDS_ERR_CA_30                   530
#define IDS_ERR_CA_31                   531
#define IDS_ERR_CA_32                   532
#define IDS_ERR_CA_33                   533
#define IDS_ERR_CA_34                   534
#define IDS_ERR_CA_35                   535
#define IDS_ERR_CA_36                   536
#define IDS_ERR_CA_37                   537
#define IDS_ERR_CA_38                   538
#define IDS_ERR_CA_39                   539
#define IDS_ERR_CA_40                   540
#define IDS_ERR_CA_41                   541
#define IDS_ERR_CA_42                   542
#define IDS_ERR_CA_43                   543
#define IDS_ERR_CA_44                   544
#define IDS_ERR_CA_45                   545
#define IDS_ERR_CA_46                   546
#define IDS_ERR_CA_47                   547
#define IDS_ERR_CA_48                   548
#define IDS_ERR_CA_49                   549
#define IDS_ERR_CA_50                   550
#define IDS_ERR_CA_51                   551
#define IDS_ERR_CA_52                   552
#define IDS_ERR_CA_53                   553
#define IDS_ERR_CA_54                   554
#define IDS_ERR_CA_55                   555
#define IDS_ERR_CA_56                   556
#define IDS_ERR_CA_57                   557
#define IDS_ERR_CA_58                   558
#define IDS_ERR_CA_59                   559
#define IDS_ERR_CA_FATALERROR           599

#define IDS_ERR_SDK_OLD                     0
#define IDS_ERR_SDK_OLD_1                   1
#define IDS_ERR_SDK_OLD_2                   2
#define IDS_ERR_SDK_OLD_3                   3
#define IDS_ERR_SDK_OLD_4                   4
#define IDS_ERR_SDK_OLD_5                   5
#define IDS_ERR_SDK_OLD_6                   6
#define IDS_ERR_SDK_OLD_7                   7
#define IDS_ERR_SDK_OLD_8                   8
#define IDS_ERR_SDK_OLD_9                   9
#define IDS_ERR_SDK_OLD_EXEC_NO_ZERO_CAL    10
#define IDS_ERR_SDK_OLD_15                  15
#define IDS_ERR_SDK_OLD_INVALID_SYNC_FREQ   20
#define IDS_ERR_SDK_OLD_OVER_MEAS_RANGE     22
#define IDS_ERR_SDK_OLD_23                  23
#define IDS_ERR_SDK_OLD_MEAS_VAL_OVER       50
#define IDS_ERR_SDK_OLD_INVALID_SYNC_FREQ_OR_MODE 51
#define IDS_ERR_SDK_OLD_FLCKR_MEAS          53
#define IDS_ERR_SDK_OLD_64                  64
#define IDS_ERR_SDK_OLD_65                  65
#define IDS_ERR_SDK_OLD_66                  66
#define IDS_ERR_SDK_OLD_67                  67
#define IDS_ERR_SDK_OLD_68                  68
#define IDS_ERR_SDK_OLD_69                  69
#define IDS_ERR_SDK_OLD_70                  70
#define IDS_ERR_SDK_OLD_71                  71